using System;
using System.Web.UI;

using OpenNetCommerce.Localization;
using SubSonic.Utilities;

namespace MettleSystems.dashCommerce.Web {
  public partial class modal : MettleSystems.dashCommerce.Store.Web.SitePage {

    #region Member Variables

    bool isException = false;

    #endregion

    #region Page Events

    /// <summary>
    /// Handles the Load event of the Page control.
    /// </summary>
    /// <param name="sender">The source of the event.</param>
    /// <param name="e">The <see cref="T:System.EventArgs"/> instance containing the event data.</param>
    protected void Page_Load(object sender, EventArgs e) {
      isException = bool.TryParse(Utility.GetParameter("isEx"), out isException);
      if(isException) {
        Page.Title = LocalizationUtility.GetText("titleModalError");
        pnlException.Visible = true;
        
      }
    }

    #endregion

  }
}
